﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gnosis.Alexandria
{
    public class Message
        : IMessageOld
    {
        public Message(string type)
            : this(type, null)
        {
        }

        public Message(string type, object body)
        {
            _type = type ?? string.Empty;
            _body = body;
        }

        private readonly string _type;
        private readonly object _body;

        public string Type
        {
            get { return _type; }
        }

        public object Body
        {
            get { return _body; }
        }
    }
}
